<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>购物车</title>
    <link rel="stylesheet" href="css/bootstrap.min.css">
    <link rel="stylesheet" href="css/shopcar.css">
    <link rel="stylesheet" href="css/common.css">
    <script src="js/JQuery2.1.4.js"></script>
    <script src="js/bootstrap.bundle.min.js"></script>


</head>

<body>
    <!-- 顶部 -->
    <div class="top" id="top">
        <div class="container">
            <div class="head1"><img src="./img/home/logo.png" alt="">
                <div class="user">
                    <a href="./login.html">登录</a>
                    <a href="./register.html">注册</a>
                    <div class="input-serch">
                        <input type="text" placeholder="热门搜索：干花花瓶">
                        <a href="">
                            <img src="./img/home/search.png" alt="">
                        </a>
                    </div>
                    <a href="./user.html"><img src="./img/home/user.png" alt=""></a>
                    <a href="./system.html"><img src="./img/home/code.png" alt=""></a>
                </div>
            </div>
            <div class="nav">
                <a href="./index.html">首页</a>
                <a href="" id="a-list">所有商品
                </a>
                <a href="">布艺软饰</a>
                <a href="./decoration.html">装饰摆件</a>
                <a href="./wall.html">墙饰壁挂</a>
                <a href="">蜡艺香薰</a>
                <a href="">创意家居</a>
            </div>

        </div>

        <ul class="box" id="list" style="display: none;">
            <li>
                <a href="">
                    <img src="./img/home/list (1).jpg" alt="">
                    <p>这是内容</p>
                </a>

            </li>
            <li>
                <a href="">
                    <img src="./img/home/list (2).jpg" alt="">
                    <p>这是内容</p>
                </a>

            </li>
            <li>
                <a href="">
                    <img src="./img/home/list (3).jpg" alt="">
                    <p>这是内容</p>
                </a>
            </li>
            <li>
                <a href="">
                    <img src="./img/home/list (4).jpg" alt="">
                    <p>这是内容</p>
                </a>
            </li>
            <li>
                <a href="">
                    <img src="./img/home/list (5).jpg" alt="">
                    <p>这是内容</p>
                </a>
            </li>


        </ul>


    </div>


    <!-- 内容 -->
    <div id="blank"></div>
    <!-- 购买进度状态 -->
    <div class="box1">
        <div class="row head-table">
            <div class="col-1">购物车</div>
            <div class="col-9">
                <img src="./img/shopcar/shop-icon (1).png" alt="">
                <span class="red">购物车</span>
                <div class="tiao"></div>
                <img src="./img/shopcar/shop-icon (2).png" alt="">
                <span>订单确认</span>
                <div class="tiao"></div>
                <img src="./img/shopcar/shop-icon (2).png" alt="">
                <span>完成订单</span>

            </div>
            <div class="col-2  ">
                <a href="">继续购物></a>
            </div>
        </div>
    </div>

    <div class="content">
        <!-- 表格 -->
        <div class="box1">
            <table>
                <tr>
                    <th colspan="2"></th>
                    <th>商品</th>
                    <th>单价</th>
                    <th>数量</th>
                    <th>小计</th>
                    <th>操作</th>
                </tr>
                <tr id="tr1">
                    <td>
                        <input type="checkbox">
                    </td>
                    <td class="img">
                        <img src="./img/shopcar/shopcar (1).png" alt="">
                    </td>
                    <td class="product">
                        <h4>创意现代简约干花花瓶摆件</h4>
                        <p>颜色分类<br></br>
                            白色瓷瓶+白色串枚
                        </p>
                    </td>
                    <td>￥20.00</td>
                    <td id="number">
                        <button onclick="ldd()">-</button>
                        <span>1</span>
                        <button onclick="add()">+</button>
                    </td>
                    <td></td>
                    <td>
                        <a id="delete">删除</a>
                    </td>
                </tr>
                <tr>
                    <td>
                        <input type="checkbox">
                    </td>
                    <td class="img">
                        <img src="./img/shopcar/shopcar (2).png" alt="">
                    </td>
                    <td class="product">
                        <h4>创意现代简约干花花瓶摆件</h4>
                        <p>颜色分类<br></br>
                            白色瓷瓶+白色串枚
                        </p>
                    </td>
                    <td>￥20.00</td>
                    <td id="number">
                        <button>-</button>
                        <span>1</span>
                        <button>+</button>
                    </td>
                    <td></td>
                    <td>
                        <a href="">删除</a>
                    </td>
                </tr>
                <tr>
                    <td>
                        <input type="checkbox">
                    </td>
                    <td class="img">
                        <img src="./img/shopcar/shopcar (3).png" alt="">
                    </td>
                    <td class="product">
                        <h4>创意现代简约干花花瓶摆件</h4>
                        <p>颜色分类<br></br>
                            白色瓷瓶+白色串枚
                        </p>
                    </td>
                    <td>￥20.00</td>
                    <td id="number">
                        <button>-</button>
                        <span>1</span>
                        <button>+</button>
                    </td>
                    <td></td>
                    <td>
                        <a href="">删除</a>
                    </td>
                </tr>
                <tr>
                    <td>
                        <input type="checkbox">
                    </td>
                    <td class="img">
                        <img src="./img/shopcar/shopcar (4).png" alt="">
                    </td>
                    <td class="product">
                        <h4>创意现代简约干花花瓶摆件</h4>
                        <p>颜色分类<br></br>
                            白色瓷瓶+白色串枚
                        </p>
                    </td>
                    <td>￥20.00</td>
                    <td id="number">
                        <button>-</button>
                        <span>1</span>
                        <button>+</button>
                    </td>
                    <td></td>
                    <td>
                        <a href="">删除</a>
                    </td>
                </tr>
                <tr>
                    <td>
                        <input type="checkbox">
                    </td>
                    <td class="img">
                        <img src="./img/shopcar/shopcar (5).png" alt="">
                    </td>
                    <td class="product">
                        <h4>创意现代简约干花花瓶摆件</h4>
                        <p>颜色分类<br></br>
                            白色瓷瓶+白色串枚
                        </p>
                    </td>
                    <td>￥20.00</td>
                    <td id="number">
                        <button>-</button>
                        <span>1</span>
                        <button>+</button>
                    </td>
                    <td></td>
                    <td>
                        <a href="">删除</a>
                    </td>
                </tr>
                <tr>
                    <td>
                        <input type="checkbox">
                    </td>
                    <td class="img">
                        <img src="./img/shopcar/shopcar (6).png" alt="">
                    </td>
                    <td class="product">
                        <h4>创意现代简约干花花瓶摆件</h4>
                        <p>颜色分类<br></br>
                            白色瓷瓶+白色串枚
                        </p>
                    </td>
                    <td>￥20.00</td>
                    <td id="number">
                        <button>-</button>
                        <span>1</span>
                        <button>+</button>
                    </td>
                    <td></td>
                    <td>
                        <a href="">删除</a>
                    </td>
                </tr>
                <tr>
                    <td>
                        <input type="checkbox">
                    </td>
                    <td colspan="2">全选</td>
                    <td>删除</td>
                    <td>共0件商品</td>
                    <td>合计：￥0.00</td>
                    <td>
                        <button><a href="./shop-confirm.html">结算</a> </button>
                    </td>
                </tr>
            </table>
        </div>


    </div>












    <!-- 侧边固定栏 -->
    <div class="rightside">
        <a class="rightside-box" href="./shopcar.html"></a>
        <a class="rightside-box" href="#phone"></a>
        <a class="rightside-box" href="./user.html"></a>
        <a class="rightside-box" href="#blank"></a>
    </div>

    <!-- 底部 -->
    <div class="foot">
        <div class="container">
            <div class="row foot1">
                <div class="col-xl-3 col-lg-4 col-md-6">
                    <img src="./img/home/foot1.png" alt="">
                    <span>7天无理由退货</span>
                </div>
                <div class="col-xl-3 col-lg-4 col-md-6">
                    <img src="./img/home/foot2.png" alt="">
                    <span>15天免费换货</span>
                </div>
                <div class="col-xl-3 col-lg-4 col-md-6">
                    <img src="./img/home/foot3.png" alt="">
                    <span>满599包邮
                    </span>
                </div>
                <div class="col-xl-3 col-lg-4 col-md-6">
                    <img src="./img/home/foot4.png" alt="">
                    <span>手机特色服务
                    </span>
                </div>

            </div>

        </div>
        <div class="foot2">
            <p>蜗牛家居©2019-2021公司版权所有 京ICP备080100-xx号<br>
                违法和不良信息举报电话：400-800-8200，本网站所列数据，除特殊说明，所有数据均出自我司实验室测试
            </p>
        </div>

    </div>




    <script>
        $(function () {
            $("#a-list").hover(function () {

                $("#list").show();
            }, function () {

                $("#list").hide();
            });
            $('#list').hover(
                function () {
                    $("#list").show();
                },
                function () {
                    $("#list").hide();
                });
            $('#delete').click(function () {
                $('#tr1 ').toggle();
            })




        });
    </script>
    <script>
        function add() {
            var a1 = document.querySelector('#number span').innerHTML;
            a1 = parseInt(a1) + 1
            document.querySelector('#number span').innerHTML = a1;
        }
        function ldd() {
            var a2 = document.querySelector('#number span').innerHTML;
            a2 = parseInt(a2) - 1
            if (a2 !== 0) {
                document.querySelector('#number span').innerHTML = a2;
            }

        }
    </script>
</body>

</html>